#ifndef Global_H
#define Global_H

///
extern float scaleScene;

/// material
struct Material {
	float ambient[4];
	float diffuse[4];
	float specular[4];
	float shininess[1];
	float reflection[1];

	Material(float a0, float a1, float a2, float a3, 
		float d0, float d1, float d2, float d3, 
		float spec0, float spec1, float spec2, float spec3, 
		float shin, float r) {

		ambient[0]=a0;
		ambient[1]=a1;
		ambient[2]=a2;
		ambient[3]=a3;

		diffuse[0]=d0;
		diffuse[1]=d1;
		diffuse[2]=d2;
		diffuse[3]=d3;
		
		specular[0]=spec0;
		specular[1]=spec1;
		specular[2]=spec2;
		specular[3]=spec3;

		shininess[0]=shin;
		reflection[0]=r;
	}
};

extern Material polishedGold;
extern Material blue;
extern Material red;
extern Material white;

#endif